home *** CD-ROM | disk | FTP | other *** search
- #include "oath/bigInteger.h"
-
- #include <iostream.h>
-
- main(int argc, char **argv)
- {if(argc != 2)
- {cout << argv[0] << " reads a bigInteger and produces squares.\n";
- cout << "Usage: " << argv[0] << " <integer>\n";
- exit(1);
- }
-
- bigIntegerA X = bigIntegerA::make(argv[1]);
-
- cout << " X = " << X << endl;
-
- cout << "X.sqr () = " << X.sqr () << endl;
- cout << "X.sqr () = " << X.sqr () << endl;
- cout << "X.sqr () = " << X.sqr () << endl;
- cout << "X.sqrt() = " << X.sqrt() << endl;
- cout << "X.sqrt() = " << X.sqrt() << endl;
- cout << "X.sqrt() = " << X.sqrt() << endl;
- cout << "X.sqrt() = " << X.sqrt() << endl;
- cout << "X.sqrt() = " << X.sqrt() << endl;
- }
-